package com.lemonsama.lesson2;

import java.awt.*;

public class MyFrame extends Frame {
    public MyFrame() {
        TextField textField = new TextField();
        this.add(textField);
        MyActionListener1 myActionListener1 = new MyActionListener1();
        textField.addActionListener(myActionListener1);
        //设置替换码
        textField.setEchoChar('*');
        this.setVisible(true);
        this.pack();
    }
}
